#include <QCoreApplication>
#include <iostream>
using namespace std;
int main()
{
 int N,K;
 cout<<"N=";
 cin>>N;
K=0;
while (K*K<=N)
     K=K+1;

 cout<<"K="<<K;
 return 0;
}
